import os

MAME = r'mame.exe'
PARAMS = r'-w'
# 可变
ROM = 'sonicwi'
INP_FILE = r'temp.inp'
AUTOBOOT = True
PARAMS += f' -resolution {224*2}x{320*2}'

## 运行
command = f'{MAME} {ROM} {PARAMS} -playback {INP_FILE}'
if AUTOBOOT:
  command += f' -autoboot_script .\\myLua\\autoboot\\{ROM}.lua'
  
os.system(command)
